package cn.cena.pay.domain;

import cn.cena.basic.domain.BaseDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayBill extends BaseDomain {

    // 待支付
    public static final Integer PAY_WAIT = 0;
    // 支付成功
    public static final Integer PAY_SUCCESS = 1;
    // 支付取消
    public static final Integer PAY_CANCEL = -1;

    // 宠物商品
    public static final Integer BUSINESS_TYPE_PET = 1;
    // 银行充值
    public static final Integer BUSINESS_TYPE_BANK = 2;

    private String digest;
    private BigDecimal money;
    private Integer state;
    private Date lastPayTime;
    private Integer payChannel;
    private Date createTime = new Date();
    private Date updateTime;
    // 支付单号
    private String unionPaySn;
    // 支付方式
    private Integer businessType;
    // 关联业务外键
    private Long businessKey;
    private Long user_id;
    private String nickName;
    private String shopName;
    private Long shop_id;


}
